<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<script
	src="${ctx}/assets/app/auth/role.js?<%=System.currentTimeMillis() %>"
	type="text/javascript"></script>
<div id="role_vue">
	<div class="form-group">
		<div class="control-group inline">
			<label>角色名称:</label> <input type="text" id="name" name="name"
				class="input-text-medium">
		</div>

		<div class="control-group pull-right">
			<button type="button" class="btn btn-primary" id="role_query_btn">查询</button>
		</div>
	</div>
	<div class="form-group">
		<div class="btn-bar">
			<button type="button" class="btn btn-primary" id="upload_btn">新增角色</button>
		</div>
	</div>


	<table id="dynamic-table"
		class="table table-striped table-bordered table-hover dataTable no-footer">
		<thead>
			<tr>
				<th>编号</th>
				<th>角色</th>
				<th>关联菜单</th>
				<th>编辑</th>
				<th>删除</th>
			</tr>
		</thead>
		<tbody></tbody>
	</table>
	<div id="role_dialog" title="基本的对话框">
		<form class="form-horizontal" id="role_form">
			<input type="hidden" id="dialog_id" name="id" />
			<div class="form-group">
				<label for="name" class="col-sm-2 control-label">角色名称</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" name="name"
						id="dialog_name" placeholder="请输入角色名称">
				</div>
			</div>
			<button type="submit" class="btn btn-default">提交</button>

		</form>
	</div>
	<div id="role_menu_dialog" title="基本的对话框">
		<form class="form-horizontal" id="role_menu_form">
			<input type="hidden" id="dialog_id" name="id" />
			<div class="form-group">
				<div class="col-sm-10">
					<ul id="treeDemo" class="ztree"></ul>
				</div>
			</div>
			<button onclick="relativeRoleMenu()" class="btn btn-default">提交</button>

		</form>
	</div>
</div>